{foreach from=$postToView->getComments() item=comment}
<div class="row">
    <div class="span-two-thirds comment-view">
        <div class="comment-text">
            <h4><a href="/user/view/{$comment->getAuthor()->getUsername()}">{$comment->getAuthor()}</a> schreef:</h4>
            {$comment->getCommentText()}
        </div>
        {if $this->session->userdata('loggedin')}
            <div class="comment-rating">
                <span onclick="commentVoteUp({$comment->getId()});"><span class="rating-button positive"></span></span>
                <span onclick="commentVoteDown({$comment->getId()});"><span
                        class="rating-button negative"></span></span>

                <div id="CID{$comment->getId()}_upVotes" class="rating-total">{$comment->getUpVotes()}</div>
                <div id="CID{$comment->getId()}_downVotes" class="rating-total">{$comment->getDownVotes()}</div>
            </div>
        {/if}
    </div>
</div>
{/foreach}


